﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class FangHao_BLL
    {
        public FangHao_BLL(FangHao_DAL dal)
        {
            Dal = dal;
        }

        public FangHao_DAL Dal { get; }

        /// <summary>
        /// 房号添加
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int FangHaoAdd(FangHao_Model m)
        {
            return Dal.FangHaoAdd(m);
        }

        /// <summary>
        /// 房号列表
        /// </summary>
        /// <param name="Name"></param>
        /// <param name="CName"></param>
        /// <returns></returns>
        public List<FangHao_Model> FangHaoShow(string? Name, string? CName)
        {
           return Dal.FangHaoShow(Name, CName);
        }

        /// <summary>
        /// 修改状态
        /// </summary>
        /// <param name="id"></param>
        /// <param name="ZT"></param>
        /// <returns></returns>
        public int FangHaoZT(int id, string? ZT)
        {
            return Dal.FangHaoZT(id, ZT);
        }

    }
}
